import pinia from "@/store";
import useUserStore from "@/store/UserStore.ts";
let userStore = useUserStore(pinia);

export const hasBtn = (app:any)=>{
    app.directive('has', {
        mounted(el:any,options:any) {
            if (!userStore.btn.includes(options.value))
                el.parentNode.removeChild(el);
        }
    })
}